home *** CD-ROM | disk | FTP | other *** search
/ Hráč 2004 August / Hrac_72_2004-08_dvd.iso / dema / Rapid Gun / rg_setup.exe / common / image_Negative.fx < prev    next >
Text File  |  2004-04-19  |  1KB  |  39 lines

  1. // LF2 Engine
  2. // (C) 2002-3 7FX
  3. //---------------------------------------------------------------------------
  4. // Desc
  5. string desc : Description = "Image shader, ktery meni zobrazeni na negativni.";
  6. // Shader type phase
  7. string type : Type = "image";
  8. //---------------------------------------------------------------------------
  9. // Render target texture
  10. texture RT : RenderTargetFSMap;
  11. //---------------------------------------------------------------------------
  12. sampler sRT = sampler_state
  13. {
  14.     Texture = <RT>;
  15.     MinFilter = POINT;
  16.     MagFilter = POINT;
  17.     AddressU = CLAMP;
  18.     AddressV = CLAMP;
  19. };
  20. //---------------------------------------------------------------------------
  21. // Pixel shader
  22. float4 PS(float2 uv: TEXCOORD0) : COLOR
  23. {
  24.     return (1 - tex2D(sRT, uv));
  25. }
  26. //---------------------------------------------------------------------------
  27. // Technique with vertex and pixel shader
  28. technique vs11_ps11
  29. {
  30.     pass p0
  31.     {
  32.         //CullMode = None;
  33.            ZEnable = false;
  34.         ZWriteEnable = false;
  35.    
  36.         PixelShader  = compile ps_1_1 PS();
  37.     }
  38. }
  39. //---------------------------------------------------------------------------